package com.design.访问者模式;

public class TestMain {

	public static void main(String[] args) {
		
		ObjectStructure objectStructure = new ObjectStructure();
		objectStructure.addNode(new NodeA());
		objectStructure.addNode(new NodeB());
		
		objectStructure.action(new VisitorA());
		
		
	}
	
}
